package com.chenyue.cm.news.service;

import com.chenyue.cm.base.service.BaseServiceIface;
import com.chenyue.cm.common.vo.Page;
import com.chenyue.cm.news.domain.JdNewsComment;
import com.chenyue.cm.news.vo.UserNewsComment;

import java.util.List;

/**
 * @author chenyue-cm
 */
public interface JdNewsCommentService extends BaseServiceIface<JdNewsComment> {

    /**
     * 带分页
     * getNewsComments
     *
     * @param page
     * @param rows
     * @param newsId
     * @return List<UserNewsComment>
     */
    Page<List<UserNewsComment>> getNewsComments(Integer page, Integer rows, Integer newsId);

    /**
     * postComment
     *
     * @param newsId
     * @param userId
     * @param content
     * @return boolean
     */
    int postComment(Integer newsId, Integer userId, String content);
}